﻿using BCCommon.Enums.TMS;
using BCMongoData.TMS.Fence;
using BCMongoEntity.TMS.Fence;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCMongoService.TMS.Fence
{
    public class FenceMongoService
    {
        public readonly IFenceMongoData fenceMongoData;
        public FenceMongoService(IFenceMongoData fenceMongoData)
        {
            this.fenceMongoData = fenceMongoData;
        }

        public FenceMongoEntity  AddNew(FenceMongoEntity fenceMongoEntity, GpsMapType gpsMapType)
        {
            return fenceMongoData.AddNew(fenceMongoEntity, gpsMapType);
        }
    }
}
